class IsAlpha
{
public static boolean isAlpha(String s) {
return s != null && s.chars().allMatch(Character::isLetter);
}
public static void main(String[] args)
{
String s = "ABCD";
System.out.println("IsAlpha: " + isAlpha(s));
}
}